package com.example.cart.service;

import com.example.cart.model.Car;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface CarService {

    Integer addCar(Car car);

    Integer updateCar(Car car);

    Integer deleteCar(Car car);

    List<Car> getAll();

    Integer getSearchCount(Map<String,Object> params);

    List<Car> searchCarsByPage(Map<String,Object> params);
}
